﻿using UnityEngine;
using System.Collections;

public class destroyGuiText : MonoBehaviour {

	// Use this for initialization
	void Start () {
		StartCoroutine(destroyThis());
	}

	//destroy this instance of this gameobject after 3 seconds.
	IEnumerator destroyThis(){
		yield return new WaitForSeconds(3.0f);
		Destroy(this.gameObject);
	}
}
